package com.ict.luxshare.bt_demo;

import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.view.Window;
import android.widget.Button;

public class PopupActivity extends AppCompatActivity {
    private static final String TAG="jb:PopupActivity";
    private void initial() {
        Button btn_Yes = (Button) findViewById(R.id.notification_button);
        btn_Yes.setOnClickListener(
                new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        Log.d(TAG, "Butten Yes");
                        Log.i(TAG, "test");
                        finish();
                    }
                }
        );
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
            Log.v(TAG, "onCreate()");
            super.onCreate(savedInstanceState);
            this.requestWindowFeature(Window.FEATURE_NO_TITLE);
            setContentView(R.layout.activity_popup);
            this.getWindow().setGravity(Gravity.BOTTOM);
            this.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
            initial();
    }
}
